package com.ruoyi.receiving.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.order.domain.SysOrder;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 去皮记录对象 sys_peeling_record
 * 
 * @author ruoyi
 * @date 2023-11-15
 */
@Data
public class SysPeelingRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String prodCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String prodName;

    /** 所属订单(订单编码) */
    @Excel(name = "所属订单(订单编码)")
    private String orderCode;

    /** 收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date receivingTime;

    /** 去皮时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "去皮时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date peelingTime;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 去皮重量 */
    @Excel(name = "去皮重量")
    private BigDecimal tareDeduction;

    /** 照片 */
    private String photo;

    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date selectMinTime;  //前端查询条件 不做映射(最早收货时间)

    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date selectMaxTime;    //前端查询条件 不做映射(最晚收货时间)

    /** 订单记录信息 */
    private List<SysOrder> sysOrderList;
}
